package com.fxpc.hddc.death.service.impl;

import com.fxpc.common.TaskInfoEnum;
import com.fxpc.common.vo.ScheduleInfoVo;
import com.fxpc.hddc.death.service.FxCasualtyLevelMapService;
import com.fxpc.hddc.service.EqScheduleBaseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author Zyl
 * @Date 2021/4/14 10:05
 * @Version 1.0
 * @Describe:
 */
@Service
public class EqFxCasualtyLevelMap1ServiceImpl implements EqScheduleBaseService {
    @Resource(name = "FxCasualtyLevelMap1ServiceImpl")
    FxCasualtyLevelMapService service;

    /**
     * 质检数据
     * @return
     */
    @Override
    public Map<String,List<ScheduleInfoVo>> qualityTaskProgressCollection() {
        Map<String,List<ScheduleInfoVo>> map = new HashMap<>();
        List<ScheduleInfoVo> scheduleInfoVos = service.fxpcQualityData();
        if (scheduleInfoVos==null){
            return null;
        }
        map.put(TaskInfoEnum.DEATH_LEVELMAP1.getTaskName(),scheduleInfoVos);
        return map;
    }

    /**
     * 上报数据
     * @return
     */
    @Override
    public Map<String,List<ScheduleInfoVo>> reportTaskProgressCollection() {
        Map<String,List<ScheduleInfoVo>> map = new HashMap<>();
        List<ScheduleInfoVo> scheduleInfoVos = service.fxpcReportData();
        if (scheduleInfoVos==null){
            return null;
        }
        map.put(TaskInfoEnum.DEATH_LEVELMAP1.getTaskName(),scheduleInfoVos);
        return map;
    }
}
